package com.example.yt_app.Interface;


import com.example.yt_app.Urils.State;
import com.example.yt_app.bean.BaseResponse;
import com.example.yt_app.bean.HistoricalData.HistoricalJsonRootBean;
import com.example.yt_app.bean.OnenetSb.OnenetSbJsonRootBean;
import com.example.yt_app.bean.Onenet_online.Online_json;
import com.example.yt_app.bean.PutOneentmassage.PutOnenetJsonRootBean;

import java.util.Date;

import io.reactivex.Observable;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Header;

import retrofit2.http.POST;
import retrofit2.http.Query;
import retrofit2.http.Url;


/**
 * Created by dell on 2021/7/16.
 */
@SuppressWarnings("ALL")
public interface SB_HttpBinService {

    @SuppressWarnings({"AlibabaLowerCamelCaseVariableNaming", "AlibabaAbstractMethodOrInterfaceMethodMustUseJavadoc"})
    @POST
    @FormUrlEncoded
    Observable<PutOnenetJsonRootBean> putmassage(@Header("api-key") String key, @Url String url, @Field("Content-Length") String Length);
    @SuppressWarnings({"AlibabaAbstractMethodOrInterfaceMethodMustUseJavadoc", "AlibabaCommentsMustBeJavadocFormat"})
    @GET("devices/status")
//  此处回调返回的可为任意类型Call<T>，再也不用自己去解析json数据啦！！！
    Observable<Online_json> getMessage(@Header("api-key") String key, @Query("devIds") String ids );
    @SuppressWarnings({"AlibabaAbstractMethodOrInterfaceMethodMustUseJavadoc", "AlibabaCommentsMustBeJavadocFormat"})
    @GET
//  此处回调返回的可为任意类型Call<T>，再也不用自己去解析json数据啦！！！
    Observable<HistoricalJsonRootBean> getSbMessage(@Header("api-key") String key, @Query("end") String end, @Query("start") String start);




}